package com.github.alipay.sdk;

import java.util.Map;

public class Alipay {

	/**
	 * 订单加签
	 * @param subject
	 * @param body
	 * @param price
	 * @param orderid
	 * @param notify_url
	 * @return
	 */
	public static String orderSign(String subject, String body, String price, String orderid, String notify_url) {
		Map<String, String> params = OrderInfoUtil2_0.buildOrderParamMap(AlipayConfig.APPID, true, subject, body, price, orderid, notify_url);
        String orderParam = OrderInfoUtil2_0.buildOrderParam(params);
        String sign = OrderInfoUtil2_0.getSign(params, AlipayConfig.RSA_PRIVATE, true);
        final String orderInfo = orderParam + "&" + sign;
        return orderInfo;
	}
	
}
